import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class AdditionalInfoServlet extends HttpServlet {
	protected void doGet(HttpServletRequest req, HttpServletResponse res) 
			throws ServletException, IOException {
		res.setContentType("text/html;charset=utf-8");
		PrintWriter out = res.getWriter();
		
		out.println("<HTML><HEAD><TITLE>Response 정보출력 Servlet</TITLE>");
		out.println("</HEAD><BODY><H3>추가적인 요청 정보</H3>");
		out.println("<pre>Request Method : " + req.getMethod());
		out.println("Path Info : " + req.getPathInfo());
		out.println("Path Translated : " + req.getPathTranslated());
		out.println("Query String : " + req.getQueryString());
		out.println("Content Length : " + req.getContentLength());
		out.println("Content Type : " + req.getContentType());
		out.println("</pre>");
		out.println("</BODY></HTML>");
		out.close();
	}
}
